const { think } = require('thinkjs');

module.exports = class extends think.Model {
  async add({ user_id, content, title, type }) {
    this.model('logs').add({
      create_time: ['exp', 'CURRENT_TIMESTAMP()'],
      user_id: user_id,
      content_1: content,
      title: title,
      type: type,
    });
  }
};
